#!/bin/bash
set -e  # Exit immediately if a command exits with a non-zero status.

DIR=$1
PKG=$2
SRPM=$3

rm $DIR/$PKG -rf
mkdir $DIR/$PKG
cd $DIR/$PKG
wget http://9.134.69.188/files/$SRPM
# mock -r ../mock.cfg --rebuild $SRPM